import wx


class MyFrame(wx.Frame):
    def __init__(self):
        super().__init__(None, -1, "My Frame", size=(300, 300))
        panel = wx.Panel(self, -1)
        buton = wx.Button(panel, -1, "test", pos=(100, 100), size=(100, 50))
        buton.Bind(wx.EVT_BUTTON, self.OnMove2)

        panel.Bind(wx.EVT_LEFT_DOWN, self.OnMove)
        wx.StaticText(panel, -1, "Pos:", pos=(10, 12))
        self.posCtrl = wx.TextCtrl(panel, -1, "", pos=(40, 10))

    def OnMove(self, event):
        print("OnMove")
        # pos = event.GetPosition()
        # self.posCtrl.SetValue("%s, %s" % (pos.x, pos.y))

    def OnMove2(self, event):
        print("OnMove2")
        event.Skip()
        # pos = event.GetPosition()
        # self.posCtrl.SetValue("%s, %s" % (pos.x, pos.y))


if __name__ == '__main__':
    app = wx.App()
    frame = MyFrame()
    frame.Show(True)
    app.MainLoop()
